package com.zhongxi.guoyuan.entity.user;

import com.zhongxi.guoyuan.entity.BaseResult;

import org.jsoup.Connection;

import java.util.List;

/**
 * Created by qj on 2018/4/20.
 */

public class TodayHomeEarnResult {

    /**
     * code : 1
     * lastgains : 0.00000
     * myredbean : 784.000000
     * recode : []
     * rights : []
     * safeobj : {"key":"5f2a4c83c79faba9e9da1753930618bf","now":"1524212855.472804","safestring":"81b8461aa73cc099eac5574e5b02e22c"}
     * totalgains : 0
     * userInfo : {"appopenid":"o8sNlwjnhmTlI9tOBb-rvRRnC4YM","avatar":"","ctime":"2018-04-02 17:54:41","deleted":"0","id":"usr32715ac1fde1e6452","isbeneficiary":"0","ismerchants":"1","isshareholders":"0","mphone":"Q09ZTsFLEM%2Fzuq53ZUEYQQ","mpopenid":"","username":"中玺国源4d8392fa"}
     */

    private int code;
    private String lastgains;
    private String myredbean;
    private BaseResult safeobj;
    private int totalgains;
    private UserInfoBean userInfo;
    private List<RecodeCoinRecordDetailResult> recode;
    private List<?> rights;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getLastgains() {
        return lastgains;
    }

    public void setLastgains(String lastgains) {
        this.lastgains = lastgains;
    }

    public String getMyredbean() {
        return myredbean;
    }

    public void setMyredbean(String myredbean) {
        this.myredbean = myredbean;
    }

    public BaseResult getSafeobj() {
        return safeobj;
    }

    public void setSafeobj(BaseResult safeobj) {
        this.safeobj = safeobj;
    }

    public int getTotalgains() {
        return totalgains;
    }

    public void setTotalgains(int totalgains) {
        this.totalgains = totalgains;
    }

    public UserInfoBean getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfoBean userInfo) {
        this.userInfo = userInfo;
    }

    public List<RecodeCoinRecordDetailResult> getRecode() {
        return recode;
    }

    public void setRecode(List<RecodeCoinRecordDetailResult> recode) {
        this.recode = recode;
    }

    public List<?> getRights() {
        return rights;
    }

    public void setRights(List<?> rights) {
        this.rights = rights;
    }

    public static class RecodeCoinRecordDetailResult {

        private String id;
        private int sharesnum;
        private String sharesgains;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getSharesnum() {
            return sharesnum;
        }

        public void setSharesnum(int sharesnum) {
            this.sharesnum = sharesnum;
        }

        public String getSharesgains() {
            return sharesgains;
        }

        public void setSharesgains(String sharesgains) {
            this.sharesgains = sharesgains;
        }
    }

    public static class UserInfoBean {
        /**
         * appopenid : o8sNlwjnhmTlI9tOBb-rvRRnC4YM
         * avatar :
         * ctime : 2018-04-02 17:54:41
         * deleted : 0
         * id : usr32715ac1fde1e6452
         * isbeneficiary : 0
         * ismerchants : 1
         * isshareholders : 0
         * mphone : Q09ZTsFLEM%2Fzuq53ZUEYQQ
         * mpopenid :
         * username : 中玺国源4d8392fa
         */

        private String appopenid;
        private String avatar;
        private String ctime;
        private String deleted;
        private String id;
        private String isbeneficiary;
        private String ismerchants;
        private String isshareholders;
        private String mphone;
        private String mpopenid;
        private String username;

        public String getAppopenid() {
            return appopenid;
        }

        public void setAppopenid(String appopenid) {
            this.appopenid = appopenid;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getCtime() {
            return ctime;
        }

        public void setCtime(String ctime) {
            this.ctime = ctime;
        }

        public String getDeleted() {
            return deleted;
        }

        public void setDeleted(String deleted) {
            this.deleted = deleted;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getIsbeneficiary() {
            return isbeneficiary;
        }

        public void setIsbeneficiary(String isbeneficiary) {
            this.isbeneficiary = isbeneficiary;
        }

        public String getIsmerchants() {
            return ismerchants;
        }

        public void setIsmerchants(String ismerchants) {
            this.ismerchants = ismerchants;
        }

        public String getIsshareholders() {
            return isshareholders;
        }

        public void setIsshareholders(String isshareholders) {
            this.isshareholders = isshareholders;
        }

        public String getMphone() {
            return mphone;
        }

        public void setMphone(String mphone) {
            this.mphone = mphone;
        }

        public String getMpopenid() {
            return mpopenid;
        }

        public void setMpopenid(String mpopenid) {
            this.mpopenid = mpopenid;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }
    }
}
